
<div id="main">
<div id="contents">
<form method="post" action="#" name="filters" id="form1">
<fieldset>
<legend>
    <label sid="wireless_adv.wireless"></label>
</legend>
<div class="frame_tab_layer">
    <table class="cmenutitle" cellspacing="0" cellpadding="0" border="0" width="100%">
        <tbody>
        <tr>
            <td class="frame_tab_left">
                <label for="id2173">
                    <label sid="wireless_adv.bgpro"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="bg_protection_1" type="radio" value="0" name="id2173">
                <label sid="wireless.auto"></label>

                <span style="padding-left:20px;"></span>
                <input id="bg_protection_2" type="radio" value="1" name="id2173">
                <label sid="wireless.on"></label>

                <span style="padding-left:20px;"></span>
                <input id="bg_protection_3" type="radio" value="2" name="id2173">
                <label sid="wireless.off"></label>

            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2169">
                    <label sid="wireless_adv.beacon_interval"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="id2169" type="text" maxlength="31" size="17" name="id2169">
                        <label sid="wireless.ms"></label>
                <span class="x-form-tip" id="id2169Tip"></span>
            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2170">
                    <label sid="wireless_adv.dtim"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="id2170" type="text" maxlength="31" size="17" name="id2170">
                <label sid="wireless.ms"></label>
                <span class="x-form-tip" id="id2170Tip"></span>
            </td>
         </tr>
       <tr>
                    <td class="frame_tab_left">
                            <label for="id2178">
                            <label sid="wireless_adv.fragment_threshold"></label>
                            </label>
                            </td>
                            <td class="frame_tab_right">
                            <input id="id2178" type="text" maxlength="31" size="17" name="id2178">
                                <label sid="wireless.bytes"></label>
                                <span class="x-form-tip" id="id2178Tip"></span>


            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2177">
                    <label sid="wireless_adv.rts_threshold"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="id2177" type="text" maxlength="31" size="17" name="id2177">
                <label sid="wireless.bytes"></label>
                <span class="x-form-tip" id="id2177Tip"></span>

            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2171">
                    <label sid="wireless_adv.tx_power"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="id2171" type="text" maxlength="31" size="17" name="id2171">
                <label sid="wireless.bytes"></label>
                <span class="x-form-tip" id="id2171Tip"></span>

            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2176">
                    <label sid="wireless_adv.short_preamble"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <span class="x-form-tip" id="id2085Tip"></span>
                <input sid="short_preamble_1" type="radio" value="1" name="id2176">
                <label sid="wireless_adv.short_preamble_select1"></label>

                <span style="padding-left:20px;"></span>
                <input sid="short_preamble_2" type="radio" value="0" name="id2176">
                <label sid="wireless_adv.short_preamble_select2"></label>

            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2199">
                    <label sid="wireless_adv.short_slot"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="short_slot_1" type="radio" value="1" name="id2199">
                <label sid="main.enable"></label>

                <span style="padding-left:20px;"></span>
                <input id="short_slot_2" type="radio" value="0" name="id2199">
              <label sid="main.disable"></label>
            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2179">
                    <label sid="wireless_adv.tx_burst"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="tx_burst_1" type="radio" value="1" name="id2179">
                <label sid="main.enable"></label>

                <span style="padding-left:20px;"></span>
                <input id="tx_burst_2" type="radio" value="0" name="id2179">
                <label sid="main.disable"></label>
            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2180">
                    <label sid="wireless_adv.pkt_aggregate"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="pkt_aggregate_1" type="radio" value="1" name="id2180">
                <label sid="main.enable"></label>

                <span style="padding-left:20px;"></span>
                <input id="pkt_aggregate_2" type="radio" value="0" name="id2180">
                <label sid="main.disable"></label>

            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2223">
                    <label sid="wireless_adv.ieee_80211h"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <input id="ieee_80211h_1" type="radio" value="1" name="id2223">
                <label sid="main.enable"></label>
                <span style="padding-left:20px;"></span>
                <input id="ieee_80211h_2" type="radio" value="0" name="id2223">
                <label sid="main.disable"></label>

            </td>
        </tr>
        <tr>
            <td class="frame_tab_left">
                <label for="id2162">
                    <label sid="wireless_adv.country_code"></label>
                </label>
            </td>
            <td class="frame_tab_right">
                <select id="id2162" name="id2162">
                    <option id="advCountryCodeUS" value="US" sid="wireless_adv.country_code_us"></option>
                    <option id="advCountryCodeJP" value="JP" sid="wireless_adv.country_code_jp"></option>
                    <option id="advCountryCodeFR" value="FR" sid="wireless_adv.country_code_fr"></option>
                    <option id="advCountryCodeTW" value="TW" sid="wireless_adv.country_code_tw"></option>
                    <option id="advCountryCodeIE" value="IE" sid="wireless_adv.country_code_ie"></option>
                    <option id="advCountryCodeHK" value="HK" sid="wireless_adv.country_code_hk"></option>
                    <option id="advCountryCodeNONE" selected="" value="NONE" sid="wireless.none"></option>
                </select>
            </td>
        </tr>
        </tbody>
    </table>
</div>
</fieldset>
<fieldset>
    <legend>
        <label sid="wireless_adv.wmm_capable"></label>
    </legend>
    <div class="frame_tab_layer">
        <table class="cmenutitle" cellspacing="0" cellpadding="0" border="0" width="100%">
            <tbody>
            <tr>
                <td class="frame_tab_left">
                    <label for="id2182">
                        <label sid="wireless_adv.wmm_capable"></label>
                    </label>
                </td>
                <td class="frame_tab_right">
                    <input id="wmm_capable_1" type="radio" onclick="read();" value="1" name="id2182">
                    <label sid="main.enable"></label>

                    <span style="padding-left:20px;"></span>
                    <input id="wmm_capable_2" type="radio" onclick="read();" value="0" name="id2182">
                    <label sid="main.disable"></label>
                </td>
            </tr>
            <tr id="tr2194">
                <td class="frame_tab_left">
                    <label for="id2194">
                        <label sid="wireless_adv.apds_capable"></label>
                    </label>
                </td>
                <td class="frame_tab_right">
                    <input id="apsd_capable_1" type="radio" value="1" name="id2194">
                    <label sid="main.enable"></label>
                    <span style="padding-left:20px;"></span>
                    <input id="apsd_capable_2" type="radio" value="0" name="id2194">
                    <label sid="main.disable"></label>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</fieldset>
<br>
<div class="submitFooter">
    <input sid="sbutton.save" class ="button" type ="button" name ="submit" id="submit"/>

</div>
</form>
</div>
</div>
<br>
<div id="helpContainer">
    <div id="help">
        <div>
            <h2>
                <label sid="share.help"></label>
            </h2>
        </div>
        <div id="helpBody">
        <dl>
            <dt class="term">
                <label sid="wireless_adv.bgpro"></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.bgpro_note"></label>
            </dd>
            <dt class="term">
                <label sid="wireless_adv.beacon_interval"></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.beacon_interval_note1"></label>
            </dd>
            <dt class="term">
                <label sid="wireless_adv.dtim "></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.dtim_note"></label>
            </dd>
            <dt class="term">
                <label sid="wireless_adv.fragment_threshold"></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.fragment_threshold_note"></label>
            </dd>
            <dt class="term">
                <label sid="wireless_adv.rts_threshold"></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.rts_threshold_note"></label>
            </dd>
            <dt class="term">
                <label sid="wireless_adv.tx_power"></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.tx_power_note"></label>
            </dd>
            <dt class="term">
                <label sid="wireless_adv.pkt_aggregate"></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.pkt_aggregate_note"></label>
            </dd>
            <dt class="term">
                <label sid="wireless_adv.ieee_80211h"></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.disable_describe_80211h"></label>
            </dd>
            <dt class="term">
            <label sid="wireless_adv.wmm_capable"></label>
        </dt>
            <dd class="definition">
                <label sid="wireless_adv.wmm_note"></label>
            </dd>
            <dt class="term">
                <label sid="wireless_adv.apds_capable"></label>
            </dt>
            <dd class="definition">
                <label sid="wireless_adv.apds_capalbe_note"></label>
            </dd>
        </dl>
        </div>

    </div>
</div>

<script type="text/javascript">

    $(document).ready(function(){

        var nonames = new Array("submit","id2183_0","id2183_1","id2183_2","id2183_3","id2184_0","id2184_1","id2184_2","id2184_3","id2185_0","id2185_1","id2185_2","id2185_3","id2186_0","id2186_1","id2186_2","id2186_3","id2187_0","id2187_1","id2187_2","id2187_3","id2188_0","id2188_1","id2188_2","id2188_3","id2189_0","id2189_1","id2189_2","id2189_3","id2190_0","id2190_1","id2190_2","id2190_3","id2191_0","id2191_1","id2191_2","id2191_3","id2192_0","id2192_1","id2192_2","id2192_3","id2193_0","id2193_1","id2193_2","id2193_3");
        var sendtext = getSendText(nonames);
        DataRequest("get_json",sendtext,function(data){
            getResult(nonames,data);
            read();

    });


        $.formValidator.initConfig({formID:"form1",debug:false,submitOnce:true,submitButtonID:"submit",
            onError:function(msg, obj, errorlist) {

            },
            onSuccess:function(){
                $(".errormsg").html('');
                var settext = getSetText(nonames);
                settext=settext.replace(/\#/g,"%23");
                submitform(modules["set_data"],settext);
            }
        });


        $("#id2169").formValidator({
            onFocus:errmsg.Info6
        }).regexValidator({
                    regExp:regexEnum.notempty,
                    onError:errmsg.Info3
                }).regexValidator({
                    regExp:regexEnum.intege1,
                    onError:errmsg.Info1
                });

        $("#id2170").formValidator({
            onFocus:errmsg.Info6
        }).regexValidator({
                    regExp:regexEnum.notempty,
                    onError:errmsg.Info3
                }).regexValidator({
                    regExp:regexEnum.intege1,
                    onError:errmsg.Info1
                });

        $("#id2178").formValidator({
            onFocus:errmsg.Info6
        }).regexValidator({
                    regExp:regexEnum.notempty,
                    onError:errmsg.Info3
                }).regexValidator({
                    regExp:regexEnum.intege1,
                    onError:errmsg.Info1
                });
        $("#id2177").formValidator({
            onFocus:errmsg.Info6
        }).regexValidator({
                    regExp:regexEnum.notempty,
                    onError:errmsg.Info3
                }).regexValidator({
                    regExp:regexEnum.intege1,
                    onError:errmsg.Info1
                });
        $("#id2171").formValidator({
            onFocus:errmsg.Info6
        }).regexValidator({
                    regExp:regexEnum.notempty,
                    onError:errmsg.Info3
                }).regexValidator({
                    regExp:regexEnum.intege1,
                    onError:errmsg.Info1
                });
  });
 
function getvalue(values,id){
 	if(values.indexOf(";")>=0){
  		var arrays= values.split(";");
  		for(var i =0;i<arrays.length;i++){
  			updatecfgvalue("id"+id+"_"+i,arrays[i]);
  			}
  	}else{
  		updatecfgvalue("id"+id+"_0",values);
  	}
 	}

	
	function read(){
		if($("[name=id2182]").attr("checked")){
			$("#tr2194").show();
			$("#tr2195").show();
		}else{
			$("#tr2194").hide();
			$("#tr2195").hide();
		}
	}
</script>
